package com.hgd.impl;

import java.io.BufferedWriter;
import java.io.FileWriter;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.Date;
import java.util.Iterator;
import java.util.List;
import org.hibernate.Session;
import com.hgd.DAO.AgencyDAO;
import com.hgd.ORM.Device;
import com.hgd.ORM.Task;
import com.hgd.ORM.TaskData;
import com.hgd.hibernate.HibernateUtil;

@javax.jws.WebService(targetNamespace = "http://impl.hgd.com/", serviceName = "AgencyImplService", portName = "AgencyImplPort", wsdlLocation = "WEB-INF/wsdl/AgencyImplService.wsdl")
public class AgencyImplDelegate {

	com.hgd.impl.AgencyImpl agencyImpl = new com.hgd.impl.AgencyImpl();

	public List<Task> findTask(int dmId) {
		return agencyImpl.findTask(dmId);
	}

	public void getTaskData(int TaskId, String dataValue, Date gainTime) {
		agencyImpl.getTaskData(TaskId, dataValue, gainTime);
	}

	public void returnAllData(List<TaskData> dataList, Date time) {
		agencyImpl.returnAllData(dataList, time);
	}

	public List<Task> deleteTask(int dmId) {
		return agencyImpl.deleteTask(dmId);
	}

	public List<Device> deleteDevice(int dmId) {
		return agencyImpl.deleteDevice(dmId);
	}

	public List<Device> addDevice(int dmId) {
		return agencyImpl.addDevice(dmId);
	}

	public void main(String[] args) {
		agencyImpl.main(args);
	}

}